package es.upm.dit.gsi.webIV0;

public class Plan {
	
	public class Dates{
		String departEnd;
		String returnEnd;
		String departStart;
		String returnStart;
		public Dates(String departEnd,String returnEnd,String departStart,String returnStart){
			this.departEnd=departEnd;
			this.returnEnd=returnEnd;
			this.departStart=departStart;
			this.returnStart=returnStart;
		}
	}
	
	public class Locations{
		String from;
		String to;
		public Locations(String from,String to){
			this.from=from;
			this.to=to;
		}
	}
	public class Prices{
		String currency;
		int value;
		public Prices(String currency, int value){
			this.currency=currency;
			this.value=value;
		}
	}
	 private Dates dates;
	 private Locations locations;
	 private Prices prices;
	 
	 
	 public Plan(Dates dates, Locations locations, Prices prices){
		 
		 this.dates=dates;
		 this.locations=locations;
		 this.prices=prices;
	 }
	 
	 public Plan(){
		 
	 }
	 
	 public String toString(){
		 String mString="";
		 mString+="Flight from: "+this.locations.from+" to " +this.locations.to+"\n";
		 mString+="Departure: "+this.dates.departStart+"\n";//+" arrival: "+this.dates.departEnd+"\n";
		 mString+="Return"+this.dates.returnStart+"\n";//+" fecha de llegada: "+this.dates.returnEnd+"\n";
		 mString+="Price: "+ this.prices.value + this.prices.currency;
		 return mString;
	 }
	public Dates getDates() {
		return dates;
	}
	public void setDates(Dates dates) {
		this.dates = dates;
	}
	public Locations getLocations() {
		return locations;
	}
	public void setLocations(Locations locations) {
		this.locations = locations;
	}
	public Prices getPrices() {
		return prices;
	}
	public void setPrices(Prices prices) {
		this.prices = prices;
	}
	 

}
